package com.wanna.common;

import com.wanna.common.doc.Generate;
import com.wanna.common.doc.document.ApiDoc;
import com.wanna.common.doc.document.impl.MarkdownDoc;
import com.wanna.common.doc.scanner.ApiScanner;
import com.wanna.common.doc.scanner.impl.DefaultApiScanner;

import java.util.Arrays;

/**
 * @author wanna
 * @since 2018-11-26
 */
public class Markdown {

    public static void main(String[] args) throws Exception {
        DocParameter param = new DocParameter();
        param.setLocalPath("D:\\work");
        param.setScannerPackages(Arrays.asList("com.wanna.common.controller"));

        ApiScanner scanner = new DefaultApiScanner();
        ApiDoc doc = new MarkdownDoc();

        Generate generate = new Generate(scanner, doc, param);
        generate.generateDocument();
    }
}
